<template>
	<view class="home">
		<view class="nav">
			<view class="text-right">
				<image src="../../static/icon/text-left.svg" mode=""></image>
			</view>
			<view class="person-circle">
				<image src="../../static/icon/person-fill.svg" mode=""></image>
			</view>
		</view>
		<view class="text-hello">
			<text>中午好，李华</text>
		</view>
		<view class="todayClass">
			<view class="contain">
				<text class="text-title">今日课程</text>
				<text class="text-two">上午课程</text>
				<view class="class-item">1</view>
				<image src="../../static/icon/LineX.svg" mode="" id="LineX"></image>
				<text class="text-two">下午课程</text>
				<view class="class-item">2</view>
			</view>
		</view>
		<view class="allClass">
			<text class="text-title">所有课程</text>
			<view class="class-item"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		components: {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.home {
		margin: 0 auto;
		padding: 0;

		// position: relative;
		.nav {
			width: 340px;
			height: 44px;
			margin: 0 auto;

			// background-color: blue;
			.text-right {
				float: left;
				margin-top: 6px;

				// margin-left: 20px;
				image {
					width: 32px;
					height: 32px;
				}
			}

			.person-circle {
				position: relative;
				float: right;
				margin-top: 6px;
				// margin-right: 20px;
				width: 32px;
				height: 32px;
				background-color: #d9d9d9;
				border-radius: 16px;

				image {
					position: absolute;
					width: 18px;
					height: 18px;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}
			}
		}

		.text-hello {
			// position: absolute;
			// top: 63px;
			// left: 25px;
			margin: 18px 0 12px 25px;
			width: 192px;
			height: 38px;
			// background-color: orange;
			font-size: 32px;
			line-height: 38px;
			font-family: Arial, Helvetica, sans-serif;
			font-weight: bold;
		}

		.todayClass {
			position: relative;
			// top: 113px;
			// left: 18px;
			display: flex;
			margin: 0 auto 10px;
			width: 340px;
			height: 410px;
			// background-color: blue;
			box-sizing: border-box;
			border-radius: 16px;
			box-shadow: 0 4px 32px rgba(0, 0, 0, 0.16);
			backdrop-filter: blur(20px);

			.contain {
				margin: 20px;
				width: 300px;
				height: 370px;

				.text-title {
					display: block;
					font-size: 24px;
					line-height: 30px;
					font-family: Arial, Helvetica, sans-serif;
					font-weight: bold;
					color: #333333;
				}

				.text-two {
					display: block;
					margin: 1px 0;
					font-size: 14px;
					line-height: 16px;
					font-family: Arial, Helvetica, sans-serif;
					font-weight: lighter;
					color: #666666;
				}

				.class-item {
					margin-bottom: 8px;
					height: 144px;
					background-color: skyblue;
					border-radius: 8px;
				}

				#LineX {
					position: absolute;
					width: 300px;
					top: 96px;
				}
			}
		}

		.allClass {
			// position: absolute;
			// top: 533px;
			// left: 18px;
			display: block;
			margin: 0 auto;
			padding: 20px;
			width: 340px;
			height: 469px;
			// background-color: orange;
			box-sizing: border-box;
			border-radius: 16px;
			box-shadow: 0 4px 32px rgba(0, 0, 0, 0.16);
			backdrop-filter: blur(20px);

			.text-title {
				// display: block;
				// margin-top: 20px;
				font-size: 24px;
				line-height: 30px;
				font-family: Arial, Helvetica, sans-serif;
				font-weight: bold;
				color: #333333;
			}

			.class-item {
				background-color: skyblue;
				height: 400px;
			}
		}
	}
</style>